using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class mtn_RefIntegMap : EntityTypeConfiguration<mtn_RefInteg>
    {
        public mtn_RefIntegMap()
        {
            // Primary Key
            this.HasKey(t => t.Id);

            // Properties
            this.Property(t => t.PriTable)
                .HasMaxLength(50);

            this.Property(t => t.PriKey)
                .HasMaxLength(50);

            this.Property(t => t.ForTable)
                .HasMaxLength(50);

            this.Property(t => t.ForKey)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("mtn_RefInteg");
            this.Property(t => t.Id).HasColumnName("Id");
            this.Property(t => t.PriTable).HasColumnName("PriTable");
            this.Property(t => t.PriKey).HasColumnName("PriKey");
            this.Property(t => t.ForTable).HasColumnName("ForTable");
            this.Property(t => t.ForKey).HasColumnName("ForKey");
        }
    }
}
